digits = [8, 9, 9, 9]

import sys

if digits[len(digits) - 1] <= 8:
    digits[len(digits) - 1] = digits[len(digits) - 1] + 1
    print(digits)
    sys.exit(0)

i = len(digits) - 1
while (i >= 0):
    if i == 0 and digits[i] == 9:
        digits.append(0)
        digits[0] = 1
        for j in range(1, len(digits) - 1):
            digits[j] = 0
        print(digits)
        sys.exit(0)
    if digits[i] == 9:
        digits[i] = 0
    else:
        digits[i] = digits[i] + 1
        print(digits)
        sys.exit(0)

    i = i - 1
